package com.aircms.pojo.validation;

/**
 * @author air
 * @create 2018-07-04 下午1:45
 */
public class BaseQueryFieldsValidation {

    private String name="";

    private String mobile="";

    private String startTime="";

    private String endTime="";

    private String startAndEndTime="";

    private String url="";


    public BaseQueryFieldsValidation(String startAndEndTime){
        if(startAndEndTime!=null&&startAndEndTime.length()>=12){
            this.startAndEndTime=startAndEndTime;
            String[] strings=startAndEndTime.split(",");     // 分割字符
            this.startTime=strings[0]+" 00:00:00";
            this.endTime=strings[1]+" 23:59:59";
        }
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getStartAndEndTime() {
        return startAndEndTime;
    }

    public void setStartAndEndTime(String startAndEndTime) {
        this.startAndEndTime = startAndEndTime;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
}
